package com.ticket.sass.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ticket.sass.admin.mapper.CouponHallMapMapper;
import com.ticket.sass.admin.service.BaseService;
import com.ticket.sass.common.entity.tenant.CouponHallMapEntity;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ywb
 * @since 2024-07-31
 */
@Service
public class CouponHallMapServiceImpl extends ServiceImpl<CouponHallMapMapper, CouponHallMapEntity> implements BaseService<CouponHallMapEntity> {
    
    
    @Override
    public CouponHallMapEntity createNewInstance() {
        return new CouponHallMapEntity();
    }
    
    @Override
    public void setFieldValue(CouponHallMapEntity entity, String fieldName, Object value) {
        switch (fieldName) {
            case "coupon_id":
                entity.setCouponId((Long) value);
                break;
            case "hall_id":
                entity.setHallId((Long) value);
                break;
            // 其他字段同理
        }
    }
}
